<!DOCTYPE html>
<html>
<head>
    <title></title>
    <script>
        window.onload = function(){
            var gg = document.getElementById("gg");

            var top = document.getElementById("top");

            top.style.width = window.innerWidth+"px";
            
            gg.style.left = window.innerWidth+"px";


            setInterval(g,100);
        }

        function g(){

            gg.style.left = (parseInt(gg.style.left)-10)+"px";

            console.log(parseInt(gg.style.left),-parseInt(gg.style.width))

            if( parseInt(gg.style.left) <= -parseInt(gg.style.width))
            {


                 gg.style.left = window.innerWidth+"px";
            }
        }
    </script>
    <style>
        #top{
            width:100%;
        }
        #gg{
            width:200px;
            font-size:14px;
            color:#eee;
            position:absolute;
        }
        body{
            overflow: hidden;

            background-color:#000;
        }

    </style>
    <meta charset="utf-8">
</head>
<body>
    <div id="top">
        <div id="gg" style="width:200px";>asdasd抽到了ssr 啥啥啥</div>
    </div>
</body>
</html>